package com.sun.eureka.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sun.eureka.api.ICustomerService;
import com.sun.eureka.entry.Customer;

@RestController
public class OrderController {
	@Autowired
	private ICustomerService customerService;
	
	/**
	 * 根据id查询客户信息
	 * @param id
	 * @return
	 */
	@RequestMapping("order/customer/{id}")
	public Customer get(@PathVariable("id") Long id) {
		return customerService.get(id);
	}
	
	
	
	
}
